package com.zengdw.easytext.api;

import java.util.ServiceLoader;

/**
 * @Author: zengd
 * @Date: 2020/7/13 14:45
 * @Version: 1.0
 */
public interface Analyzer {
    String getName();

    double analyze();

    static Iterable<Analyzer> getAnalyzers() {
        return ServiceLoader.load(Analyzer.class);
    }
}
